<?php
    // 获取当前页面数据,如果没有数据重新跳转到登录界面
    $bot_id = $_COOKIE['bot_id'];	
    $bot_work_data = $_COOKIE['bot_work_data'];		// 有效期
    LOGINFO($bot_work_data, '=== $bot_work_data');
    if (empty($bot_id)) {
        header("location:index.php?m=cloud&c=cloud_login&a=login_main");
    }
?>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no">
        <meta content="IE=edge" http-equiv="X-UA-Compatible">
        <meta http-equiv="Expires" content="0">
        <meta http-equiv="Pragma" content="no-cache">
        <meta http-equiv="Cache-control" content="no-cache">
        <meta http-equiv="Cache" content="no-cache">
        <title>云发圈</title>
        <script>
            !function(){
                function e(){
                    var e,t=16;
                    if(t=750<document.documentElement.clientWidth?"100px":320<document.documentElement.clientWidth?
                    document.documentElement.clientWidth/7.5+"px":320/7.5+"px",
                    document.documentElement.style.fontSize=t,
                    e=document.documentElement.currentStyle?document.documentElement.currentStyle.fontSize:getComputedStyle(document.documentElement,!1).fontSize,
                    1!=((e=parseFloat(e))/(t=parseFloat(t))).toFixed(2)){var n=t*t/e;n=parseInt(1e4*n)/1e4,
                    document.documentElement.style.fontSize=n+"px"
                }
            }
            var t=null;window.addEventListener("resize",
                function(){
                    clearTimeout(t),
                    t=setTimeout(e,300)
                },!1),e()
            }(window)
        </script>
        <style></style>
        <link rel="stylesheet" href="public/cloud/statics/css/common.css">
        <link rel="stylesheet" href="public/cloud/statics/css/my.css">
        <link rel="stylesheet" href="public/cloud/statics/css/dialog.min.css">
    </head>

    <body>
        <div class="header-title">
            云发圈
            <button align="right" type="button" class="btn_close" onClick="login_exit()"> 关闭</button>
        </div>
        <div class="place-header"></div>
        <div class="my">
            <div class="my-div2 gw-time">发单工位 : <?php echo $bot_id ?>  有效期 : <?php echo date('Y-m-d h:i:s', $bot_work_data) ?>
            </div>
            <div class="my-jianyi">建议：微信首次登录后，系统将强制保持微信登录6小时进行养号操作，避免自动掉线情况！！！且在此期间微信不会发单                
            </div>

            <div class="wei-div2 wx-info">
                <div class="div2-2">
                    <div class="div2-left">
                        <img class="img" src = "public/cloud/statics/img/icon.jpg" alt=''>
                    </div>
                    <div class = "div2-right">
                        <div class = "div2-r1"></div>
                        <div class = "div2-r2">暂未登陆</div>
                    </div>
                </div>
                <img class="div2-img wx-login" style="top: 0.26rem" onClick="wx_login_request()" src="public/cloud/statics/img/my_login_btn.png" alt=''>
                <a href="javascript:;" onClick="wx_exit_request()" class="div2-a wx-login-qz">退出</a>
            </div>
            
            <h3 class="h3">
                发单微信群
                <div class="h3-right fq-status">
                    <!-- <input class="fq-check xgfq-status" type="checkbox" checked=''> 发单中 -->
                </div>
            </h3>
            <h3 class="h3">

            </h3>
            <ul class="qun-ul">
                <li data-id="82400">
                    <input class = "li-input4" placeholder = '' readonly = 'readonly' type = "text" value = "群名" >
                    <input class = "li-input" placeholder = '' readonly = 'readonly' type = "text" value = "开始">
                    <input class = "li-input" placeholder = '' readonly = 'readonly' type = "text" value = "结束">
                    <input class = "li-input" placeholder = '' readonly = 'readonly' type = "text" value = "间隔">
                    <input class = "li-input" placeholder = '' readonly = 'readonly' type = "text" value = "状态">
                    <button class = "btn_setting" onClick = "create_new_group()" href = "javascript:;">刷新</button>
                </li>
                <?php $this->get_send_groups(); ?>
            </ul>

            <!-- <div class="my-div3">
                <div>（打开此开关后，该工位将自动跟发官方的朋友圈）</div>
            </div> -->
            <h3 class="h3">绑定流程</h3>
            <div class="my-div1">
                <div class="div1-li">
                    <div class="div1-1">1</div>
                    <div class="div1-2">点击登录微信，绑定微信号</div>
                </div>
                <div class="div1-li">
                    <div class="div1-1">2</div>
                    <div class="div1-2">微信群回复呼叫小美，点击上方刷新按钮就可绑定微信群</div>
                </div>
            </div>
        </div>
        <div class="shade" id="wxlogin-tip" style="z-index:1009">
            <div class="wxlogin">
                <img class="wxlogin-img wxlogin-close" src="public/cloud/statics/img/my_close.png" alt=''>
                <h3 class="wxlogin-h3">登录微信</h3>
                <div class="div-img">
                    <img class="img QRCode" src='' alt=''>
                </div>
                <p class="wxlogin-p code0">请在<span class="timeend">240</span>秒以内扫描登录微信</p>
                <p class="wxlogin-p2 code1">二维码失效，请重新获取二维码</p>
                <div class="wxlogin-p2-a code1 wxcx-login" href="javascript:;">重新获取</div>
                <p class="wxlogin-p1">登录方式：</p>
                <p class="wxlogin-p1">1.将二维码截图发给他人，手机扫描二维码登录</p>
                <p class="wxlogin-p1">2.将二维码截图发到电脑，手机扫描二维码登录</p>
            </div>
        </div>
        <div class="van-toast" style="z-index:2018">
            <div class="van-loading">
                <span class="van-loading__spinner" style="color:#fff">
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                    <i></i>
                </span>
            </div>
            <div class="van-toast__text"></div>
        </div>
        <div class="van-toast_shade" style="display: none;"></div>
        <div class="shade" id="isdelete-tip" style="z-index:2018">
            <div class="loginout">
                <h3 class="loginout-h3">是否删除</h3>
                <p class="loginout-p"></p>
                <div class="loginout-div">
                    <a class="isdelete-close" href="javascript:;">取消</a>
                    <a class="queding qd-delete" href="javascript:;">确定</a>
                </div>
            </div>
        </div>
        <div class="shade" id="isloginout-tip" style="z-index:2018">
            <div class="loginout">
                <h3 class="loginout-h3">是否退出</h3>
                <p class="loginout-p"></p>
                <div class="loginout-div">
                    <a class="isdelete-close" href="javascript:;">取消</a>
                    <a class="queding qd-logout" href="javascript:;">确定</a>
                </div>
            </div>
        </div>
        <div class="shade" id="gonggao-tip" style="z-index:2018">
            <div class="gonggao">
                <h3 class="gg-h3">公告</h3>
                <p class="gg-p">因近期网站域名被同行频繁攻击造成网站打不开，给您的使用带来了不便， 为保障您的正常使用现平台为您单独配置了登陆域名，请您保存收藏此链接， 登陆地址：
                    <a class="gg-href" href="javascript:;"></a>请不要将您的专属域名告知与他人（平台其他用户也不可以），若泄露将会有被攻击的风险！！！！！！！
                </p>
                <div class="gg-div">
                    <a class="gg-a copy" href="javascript:;">复制网址</a>
                </div>
                <img class="gg-close" src="public/cloud/statics/img/my_close.png" alt=''>
            </div>
        </div>

        <div class="g-nav">
            <a style="width: 3.75rem" class="a1" href="index.php?m=cloud&c=cloud_shop&a=my_shop">
                <span></span>
                <i>商品库</i>
            </a>
            <a style="width: 3.75rem" class="cur_a a4" href="javascript:;">
                <span></span>
                <i>我的</i>
            </a>
        </div>

        <script src="statics/base/js/jquery.min.js?v=2.1.4"></script>
        <script src="statics/base/js/bootstrap.min.js?v=3.3.6"></script>
        <script src="public/cloud/statics/js/layui/layui.all.js"></script>
        <script src="public/cloud/statics/js/main.js"></script>
        <script src="public/cloud/statics/js/wx_login.js"></script>
    </body>
</html>